/*
 * 0+1+1/2+1/3+1/4+....1/100
 */

package xunhuan;

public class Demo5 {

	public static void main(String[] args) {
		double s=0;
		int i = 1;
		while (i <= 100) {
			s = s + 1.0/i;
			i++;

		}
		System.out.println(s);
	}
}
